<?php
ob_start();
session_start();
?>

<html>
<head>
</head>
<body>
<form name="myform" action="StopsResult.php" method="POST">
<div align="center">

<?php
include ("connect.php");
$dbname = 'Transportation';
mysql_select_db($dbname);

$page_title = "Welcome to Abu Dhabi Transportation Web Site - Search by Bus Stops";
$loginText = "Sign In";
$leftMenu = array
	(
		 "Home" => "index.php",
		"Routes" => "routes.php",
		"Schedule" => "Schedule.php",
		"Stops" => "Stops.php",
		"How To Go There" => "#",
	);
	 
$content = "<br/><br/><br/>Please select the Bus Stop to view Routes passing by it<br/><br/><br/>";

$q = "select distinct name from busstops";
$result = mysql_query($q);

$content .= 'Bus Stop: &nbsp';

$content .= '<select name="mydropdown1">';
while ($row = mysql_fetch_array($result)) 
{
$content .= '<option value="'.$row{'name'}.'">'. $row{'name'}.'</option>';
}
$content .= '</select>';
$content .= '<br/><br/>';

mysql_close($connect);
$content .='<br/><br/><br/><br/>'; 
$content .= '<input type = "submit"/>';

include("default_layout.php");
?>

<br/><br/>
User Name: 
//<input type = "text" name = "user" /> <br/><br />


</div>
</form>
</body>
</html>